package com.artifact.mit.mypoint.activity;

import static com.artifact.mit.mypoint.service.util.DefaultLeftMenu.CATALOGUE;
import android.os.Bundle;
import android.widget.ListView;

import com.artifact.mit.mypoint.R;
import com.artifact.mit.mypoint.adapter.CataloguePointIssuerAdapter;
import com.artifact.mit.mypoint.service.model.PointIssuer;

public class CatalogueRedeem extends MyPointBaseActivity {

	private ListView pointIssuer;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState, CATALOGUE);
		setContentView(R.layout.catalogue_redeem);

		pointIssuer = (ListView) findViewById(R.id.listView1);
		CataloguePointIssuerAdapter adapter = new CataloguePointIssuerAdapter(this);

		adapter.add(new PointIssuer(R.drawable.gff, "Garuda Frequent Flyer", "Price : 50.000", null));
		adapter.add(new PointIssuer(R.drawable.acehardware, "Ace Hardware", "Price : 65.000", null));
		adapter.add(new PointIssuer(R.drawable.blibli, "BliBli", "Price : 15.000", null));
		adapter.add(new PointIssuer(R.drawable.toyskingdom, "Toys Kingdom", "Price : 5.000", null));
		adapter.add(new PointIssuer(R.drawable.centro, "Centro", "Price : 25.000", null));

		pointIssuer.setAdapter(adapter);
	}
}
